package com.lecture.java8.geekbang.demo03;

import java.awt.*;

/**
 * 将图片上传阿里云
 * @author 72879
 */
public class AliyunImageStoreJob {

    private static final String BUCKET_NAME = "bucketName";

    public void process() {
        Image image = null;

        AliyunImageStore imageStore = new AliyunImageStore();
        String accessToken = imageStore.generateAccessToken();
        imageStore.uploadToAliyun(image,BUCKET_NAME,accessToken);
    }
}
